{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "456f2994",
   "metadata": {},
   "outputs": [],
   "source": [
    "import numpy as np\n",
    "import cv2 as cv\n",
    "\n",
    "#create a whhite image\n",
    "img = np.ones((512,512,3),np.uint8)*255\n",
    "\n",
    "#Draw a diagonal blue line with thickness of 5 px\n",
    "startPt = (25,25)\n",
    "endPt = startPt\n",
    "color = (255,0,0)\n",
    "thinknessPx = 5\n",
    "cv.line(img,startPt,endPt,color,thinknessPx)\n",
    "\n",
    "cv.imshow('img', img)\n",
    "cv.waitKey(0)\n",
    "cv.destroyAllWindows()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "59e1ecaa",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.16"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
